package com.example.zhunongzonghe.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZnScenicEvaluateBean implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键，旅游景点评价表
     */
    private Integer id;

    /**
     * 属于那个用户
     */
    private String username;

    /**
     * 属于哪个旅游景点
     */
    private Integer scenicId;

    /**
     * 评价内容
     */
    private String content;

    /**
     * 评分
     */
    private double score;
    /**
     * 评价图片
     */
    private String picture;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    private String nickName;//发帖用户昵称
    private String avatar;//发帖用户头像

    private Long CommentNumBer;//评论总数
    private boolean linked;//是否点赞
    private Integer likeCount;//点赞数量

    private double averageMarks;//总评分

    private String spotName;
}
